home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Night Owl 6
/
Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso
/
015a
/
sgway5.zip
/
STACGW5.BAT
next >
Wrap
DOS Batch File
|
1991-08-06
|
44KB
|
1,255 lines
echo off
rem =========================================================================
rem STACGW5.BAT - Version 1.00, Gateway MS-DOS 5.0 Upgrade Batch File
rem =========================================================================
rem Purpose: To ease the upgrade to DOS 5.0 for users meeting the following
rem criteria: there is less than 2.8 MB of space available on the
rem uncompressed drive.
rem
rem Assumptions:
rem The batch file MUST be run from the Stacker directory on the
rem Stacker volume.
rem
rem Parameters (all required):
rem
rem %1 = on PASS 1: drive letter to install from (A, B, A:, or B:)
rem %2 = drive letter for Stacker volume with DOS directory (eg., C:)
rem %3 = DOS directory on Stacker volume (eg., \DOS)
rem
rem Environment variables used:
rem
rem _b = drive letter of real boot drive (uncompressed), with ':'
rem character appended
rem _d = user's DOS directory name; if there's no leading '\' on it,
rem one is prepended before the variable is used
rem _hd = hard drive letter for DOS directory (must be a Stacker volume)
rem _fd = floppy drive letter for drive DOS 5 is installed from
rem _fs = floppy diskette size; _f=3 means 3.5", _f=5 means 5.25"
rem
rem Troubleshooting:
rem
rem The batch file creates a file called STACGW5.LOG in the root directory
rem of the uncompressed drive. This log file is eventually moved to the
rem Stacker directory on the uncompressed drive. Echo statements are used
rem to append to the file so that tech support can know how far the
rem process got if it fails.
rem
rem =========================================================================
rem Flow of processing...
rem
rem Execute pass 2 if the batch file variable %5 is 2.
rem Execute pass 3 if the batch file variable %5 is 3.
rem
rem PASS 1:
rem Verify that there are three parameters.
rem Check for sufficient environment space.
rem Check for SATTRIB, SWAPMAP and DRVTYPE in Stacker directory.
rem Determine real boot drive using use SWAPMAP.
rem Verify the drive letter (%1).
rem Verify the DOS directory name specified (%2).
rem Verify that the drive for DOS directory is on a Stacker volume (%3).
rem Verify that VIDTYPE.EXE is in the Stacker directory.
rem
rem Display the welcome screen with user instructions.
rem Rename CONFIG.SYS and AUTOEXEC.BAT for later restoration.
rem Prompt for diskette containing EXPAND.EXE and copy it.
rem Prompt for distribution diskettes and expand files into DOS directory.
rem Update driver files in root, DOS, and Windows directories as needed.
rem Update COMMAND.COM on Stacker volume.
rem Prepare for PASS 2 by copying ourselves to the boot disk.
rem Transfer control to DISK 1 of Gateway DOS Upgrade Set.
rem Create correct DOSSHELL based on video type.
rem Instruct the user to reboot for PASS 2.
rem
rem PASS 2:
rem SYS the uncompressed drive.
rem Copy COMMAND.COM to the DOS directory on the uncompressed drive.
rem Restore CONFIG.SYS to prepare for PASS 3.
rem Instruct the user to reboot for PASS 3.
rem
rem PASS 3:
rem Update system files on the Stacker volume.
rem Restore AUTOEXEC.BAT on the uncompressed drive.
rem Copy the STACGW5.LOG file to the Stacker directory on the
rem uncompressed drive.
rem Cleanup and delete temporary files as much as possible.
rem Instruct the user to reboot and exit.
rem =========================================================================
rem if the fifth parameter of STACGW5.BAT is 2, it's time for PASS 2.
if %5qq==2qq goto pass2
rem If the fifth parameter of STACGW5.BAT is 3, it's time for PASS 3.
if %5qq==3qq goto pass3
rem =========================================================================
rem PASS 1 Process.
:pass1
rem Verify that there are three parameters.
if %1qq==qq goto noparms
if %2qq==qq goto noparm2
if %3qq==qq goto noparm3
rem Check for sufficient environment space. This check will fail for one
rem of 2 reasons: 1) not enough environment, and 2) DOS version prior to
rem 3.1. Those DOS versions don't handle environment vars in batch files.
:chkenv
set _b=1234567890123456789012345
if %_b%==1234567890123456789012345 goto chkenv_e
goto nospace
:chkenv_e
set _b=
rem Check to see that we're in the Stacker directory. We need to be here
rem so we can use the SATTRIB, SWAPMAP, and DRVTYPE commands later on.
:ckstkr
if not exist sattrib.com goto notstkr1
if not exist swapmap.com goto notstkr1
if not exist drvtype.exe goto notstkr1
:chkswap
rem Find out what the real boot drive is.
swapmap c:
IF errorlevel 26 goto noboot
IF errorlevel 25 goto bootZ
IF errorlevel 24 goto bootY
IF errorlevel 23 goto bootX
IF errorlevel 22 goto bootW
IF errorlevel 21 goto bootV
IF errorlevel 20 goto bootU
IF errorlevel 19 goto bootT
IF errorlevel 18 goto bootS
IF errorlevel 17 goto bootR
IF errorlevel 16 goto bootQ
IF errorlevel 15 goto bootP
IF errorlevel 14 goto bootO
IF errorlevel 13 goto bootN
IF errorlevel 12 goto bootM
IF errorlevel 11 goto bootL
IF errorlevel 10 goto bootK
IF errorlevel 9 goto bootJ
IF errorlevel 8 goto bootI
IF errorlevel 7 goto bootH
IF errorlevel 6 goto bootG
IF errorlevel 5 goto bootF
IF errorlevel 4 goto bootE
IF errorlevel 3 goto bootD
IF errorlevel 2 goto bootC
goto noboot
:bootC
set _b=C:
Goto bootdon
:bootD
set _b=D:
goto bootdon
:bootE
set _b=E:
goto bootdon
:bootF
set _b=F:
goto bootdon
:bootG
set _b=G:
goto bootdon
:bootH
set _b=H:
goto bootdon
:bootI
set _b=I:
goto bootdon
:bootJ
set _b=J:
goto bootdon
:bootK
set _b=K:
goto bootdon
:bootL
set _b=L:
goto bootdon
:bootM
set _b=M:
goto bootdon
:bootN
set _b=N:
goto bootdon
:bootO
set _b=O:
goto bootdon
:bootP
set _b=P:
goto bootdon
:bootQ
set _b=Q:
goto bootdon
:bootR
set _b=rR:
goto bootdon
:bootS
set _b=S:
goto bootdon
:bootT
set _b=T:
goto bootdon
:bootU
set _b=U:
goto bootdon
:bootV
set _b=V:
goto bootdon
:bootW
set _b=W:
goto bootdon
:bootX
set _b=X:
goto bootdon
:bootY
set _b=Y:
goto bootdon
:bootZ
set _b=Z:
:bootdon
echo Boot drive is %_b% >> %_b%\stacgw5.log
rem Check for presence and validity of the drive letter parameter.
:chkdrv
if %1==a: goto setdrv
if %1==A: goto setdrv
if %1==b: goto setdrv
if %1==B: goto setdrv
if %1==a goto setdrv
if %1==A goto setdrv
if %1==b goto setdrv
if %1==B goto setdrv
goto nodrive
rem Set drive letter variable.
:setdrv
if %1==a: set _fd=A:
if %1==A: set _fd=A:
if %1==b: set _fd=B:
if %1==B: set _fd=B:
if %1==a set _fd=A:
if %1==A set _fd=A:
if %1==b set _fd=B:
if %1==B set _fd=B:
rem Make sure the drive for the DOS directory is a Stacker volume.
rem Append a ':' to it, if it helps.
cls
set _hd=%2
set _d=%3
drvtype %_hd%
if errorlevel 3 goto notstkr2
if errorlevel 2 goto chkdir
goto notstkr2
:chkdir
if exist %_hd%%_d%\chkdsk.com goto chkvidtyp
if not exist %_hd%:%_d%\chkdsk.com goto direrr1
set _hd=%_hd%:
:chkvidtyp
if not exist %_hd%\stacker\vidtype.exe goto novid
rem We're done error checking, let's tell them why we're here. This is
rem the normal opening screen for the target audience.
:welcome
cls
echo .
echo . Welcome to the Gateway MS-DOS 5.0 Upgrade for Stacker users.
echo . ============================================================
echo .
echo This process will allow you to upgrade your system to Gateway
echo MS-DOS 5.0. During this process you will be prompted to insert each
echo of your Gateway MS-DOS 5.0 Upgrade diskettes. All of the DOS command
echo files and drivers on your system will be updated.
echo .
echo This process will take approximately 20 minutes.
echo .
echo You will need at least 3 MB of disk space on your Stacker volume.
echo .
echo You will also need at least 650 KB of disk space on your uncompressed
echo boot drive.
echo .
echo ********
echo WARNING: IF YOU PERFORM THE GATEWAY MS-DOS 5.0 UPGRADE USING THIS
echo ******** PROCEDURE, YOU WILL NOT BE ABLE TO USE THE GATEWAY MS-DOS 5.0
echo UNINSTALL FEATURE TO RETURN TO YOUR OLD DOS VERSION.
echo .
echo IF YOU WISH TO EXIT, PRESS CTRL-C.
echo .
pause
dir %_b% /w
echo --------------------
echo ^
echo :
echo :
echo If the number displayed above as "bytes free" is less than 650,000,
echo be sure to do the following:
echo .
echo 1. Press Ctrl-C to exit this process.
echo 2. Make at least 650 KB available on drive %_b%. You can do this by
echo deleting unnecessary files or backing up files to diskettes.
echo 3. Re-run this batch file.
echo .
echo If the number displayed above as "bytes free" is greater than 3,000,000,
echo you should not run this batch file as you already have enough available
echo disk space to install Gateway MS-DOS 5.0 using the SETUP program.
echo Type CTRL-C now if you need to exit this procedure.
echo .
echo If you wish to continue this procedure and there is sufficient space
echo available, you may continue this process.
echo .
pause
cls
echo .
echo We will now display the amount of space available on your Stacker
echo volume.
echo .
echo If you wish to exit, press Ctrl-C.
echo .
pause
dir %_hd%%_d% /w
echo --------------------
echo ^
echo :
echo :
echo :
echo .
echo If the number displayed above as "bytes free" is less than 3,000,000,
echo be sure to do the following:
echo .
echo 1. Press Ctrl-C to exit this process.
echo .
echo 2. Make at least 3 MB available on the Stacker volume containing the
echo %_hd%%_d% directory. You can do this by deleting unnecessary files
echo or by backing up files to diskettes.
echo .
echo 3. Re-run this batch file.
echo .
echo If there is sufficient space available, you may continue this process.
echo .
pause
rem At this point we're ready to get started with the process.
echo STACGW5.BAT start. > %_b%\stacgw5.log
rem Save config.sys and autoexec.bat for subsequent restoration.
if exist %_b%\config.sys ren %_b%\config.sys config.$s$
if exist %_b%\autoexec.bat ren %_b%\autoexec.bat autoexec.$s$
rem Get the disk with EXPAND.EXE on it.
cls
:gtexpdsk
echo .
echo If you are using 5.25" diskettes, insert DISK 5.
echo .
echo If you are using 3.5" diskettes, insert DISK 3.
pause
if exist %_fd%expand.exe goto cpyexpnd
cls
echo Error: This is the wrong disk, try again...(press Ctrl-C to exit)
echo.
echo This batch file is designed to assist you during installation of
echo the Gateway MS-DOS 5.0 Upgrade. It does not support the Microsoft
echo MS-DOS 5 Upgrade or the IBM DOS 5.0 Upgrade. If you need assistance
echo installing another manufacturer's DOS 5.0, please contact Stac
echo Technical Support.
goto gtexpdsk
:cpyexpnd
echo Copying expand.exe to %_hd%%_d%...
copy %_fd%expand.exe expand.exe > nul
echo .
echo Insert DISK 1 of your Gateway MS-DOS 5.0 in drive %_fd%. >> %_b%\stacgw5.log
echo Insert DISK 1 of your Gateway MS-DOS 5.0 in drive %_fd%
pause
rem Figure out which diskette format.
rem _fs=3 means 3.5" diskettes; _fs=5 means 5.25" diskettes
rem
set _fs=3
if exist %_fd%display.sy_ goto endwhfmt
set _fs=5
:endwhfmt
rem Based on disk format, start prompting for the distribution diskettes.
if %_fs%==3 goto getdsk31
if %_fs%==5 goto getdsk51
rem Copy files from 3.5" diskettes.
:getdsk31
if exist %_fd%command.com goto copyd31
cls
echo Error: This doesn't look like DISK 1, please try again...
echo (press Ctrl-C now if you need to exit)
echo .
echo This procedure is designed to install the Gateway version of MS-DOS 5.0
echo You may be trying to install another manufacturer's version of DOS 5.0.
echo Check to be sure you have the correct version of DOS 5.0 for your
echo system.
echo .
echo Insert DISK 1 of your Gateway MS-DOS 5.0 in drive %_fd%. >> %_b%\stacgw5.log
echo Insert DISK 1 of your Gateway MS-DOS 5.0 in drive %_fd%
pause
goto getdsk31
:copyd31
echo Expanding contents of DISK 1 to %_hd%%_d%...
echo .
copy %_fd%autoexec.bat %_hd%%_d%\autoexec.bat > nul
copy %_fd%command.com %_hd%%_d%\command.com > nul
copy %_fd%country.sys %_hd%%_d%\country.sys > nul
expand %_fd%ega.sy_ %_hd%%_d%\ega.sys
copy %_fd%format.com %_hd%%_d%\format.com > nul
copy %_fd%keyb.com %_hd%%_d%\keyb.com > nul
copy %_fd%keyboard.sys %_hd%%_d%\keyboard.sys >nul
copy %_fd%nlsfunc.exe %_hd%%_d%\nlsfunc.exe > nul
copy %_fd%setup.exe %_hd%%_d%\setup.exe > nul
copy %_fd%setup.ini %_hd%%_d%\setup.ini > nul
copy %_fd%cv.com %_hd%%_d%\cv.com > nul
expand %_fd%display.sy_ %_hd%%_d%\display.sys
expand %_fd%ega.cp_ %_hd%%_d%\ega.cpi
expand %_fd%himem.sy_ %_hd%%_d%\himem.sys
expand %_fd%mode.co_ %_hd%%_d%\mode.com
expand %_fd%setver.ex_ %_hd%%_d%\setver.exe
expand %_fd%ansi.sy_ %_hd%%_d%\ansi.sys
expand %_fd%debug.ex_ %_hd%%_d%\debug.exe
expand %_fd%edlin.ex_ %_hd%%_d%\edlin.exe
expand %_fd%emm386.ex_ %_hd%%_d%\emm386.exe
expand %_fd%fastopen.ex_ %_hd%%_d%\fastopen.exe
copy %_fd%fdisk.exe %_hd%%_d%\fdisk.exe > nul
expand %_fd%mem.ex_ %_hd%%_d%\mem.exe
expand %_fd%mirror.co_ %_hd%%_d%\mirror.com
expand %_fd%ramdrive.sy_ %_hd%%_d%\ramdrive.sys
expand %_fd%share.ex_ %_hd%%_d%\share.exe
expand %_fd%smartdrv.sy_ %_hd%%_d%\smartdrv.sys
expand %_fd%sys.co_ %_hd%%_d%\sys.com
expand %_fd%undelete.ex_ %_hd%%_d%\undelete.exe
copy %_fd%unformat.com %_hd%%_d%\unformat.com > nul
expand %_fd%xcopy.ex_ %_hd%%_d%\xcopy.exe
:getdsk32
echo Insert DISK 2 of your Gateway MS-DOS 5.0 in drive %_fd%. >> %_b%\stacgw5.log
echo Insert DISK 2 of your Gateway MS-DOS 5.0 in drive %_fd%
pause
if exist %_fd%doskey.co_ goto copyd32
cls
echo Error: This doesn't look like DISK 2, please try again...
echo (press Ctrl-C now if you need to exit)
echo .
goto getdsk32
:copyd32
echo Expanding contents of DISK 2 to %_hd%%_d%...
echo .
expand %_fd%doskey.co_ %_hd%%_d%\doskey.com
expand %_fd%cga.gr_ %_hd%%_d%\cga.grb
expand %_fd%cga.in_ %_hd%%_d%\cga.ini
expand %_fd%cga.vi_ %_hd%%_d%\cga.vid
expand %_fd%dosshell.co_ %_hd%%_d%\dosshell.com
expand %_fd%dosshell.ex_ %_hd%%_d%\dosshell.exe
expand %_fd%dosswap.ex_ %_hd%%_d%\dosswap.exe
expand %_fd%ega.gr_ %_hd%%_d%\ega.grb
expand %_fd%ega.in_ %_hd%%_d%\ega.ini
expand %_fd%ega.vi_ %_hd%%_d%\ega.vid
expand %_fd%egamono.gr_ %_hd%%_d%\egamono.grb
expand %_fd%herc.gr_ %_hd%%_d%\herc.grb
expand %_fd%herc.vi_ %_hd%%_d%\herc.vid
expand %_fd%mono.gr_ %_hd%%_d%\mono.grb
expand %_fd%mono.in_ %_hd%%_d%\mono.ini
copy %_fd%packing.lst %_hd%%_d%\packing.lst > nul
expand %_fd%print.ex_ %_hd%%_d%\print.exe
expand %_fd%vga.gr_ %_hd%%_d%\vga.grb
expand %_fd%vga.vi_ %_hd%%_d%\vga.vid
expand %_fd%vgamono.gr_ %_hd%%_d%\vgamono.grb
copy %_fd%appnotes.txt %_hd%%_d%\appnotes.txt > nul
expand %_fd%doshelp.hl_ %_hd%%_d%\doshelp.hlp
expand %_fd%dosshell.hl_ %_hd%%_d%\dosshell.hlp
expand %_fd%edit.hl_ %_hd%%_d%\edit.hlp
expand %_fd%help.ex_ %_hd%%_d%\help.exe
expand %_fd%recover.ex_ %_hd%%_d%\recover.exe
expand %_fd%qbasic.hl_ %_hd%%_d%\qbasic.hlp
copy %_fd%edit.com %_hd%%_d%\edit.com > nul
expand %_fd%money.ba_ %_hd%%_d%\money.bas
expand %_fd%msherc.co_ %_hd%%_d%\msherc.com
expand %_fd%qbasic.ex_ %_hd%%_d%\qbasic.exe
:getdsk33
echo Insert DISK 3 of your Gateway MS-DOS 5.0 in drive %_fd%. >> %_b%\stacgw5.log
echo Insert DISK 3 of your Gateway MS-DOS 5.0 in drive %_fd%
pause
if exist %_fd%gorilla.ba_ goto copyd33
cls
echo Error: This doesn't look like DISK 3, please try again...
echo (press Ctrl-C now if you need to exit)
echo .
goto getdsk33
:copyd33
echo Expanding contents of DISK 3 to %_hd%%_d%...
echo .
expand %_fd%gorilla.ba_ %_hd%%_d%\gorilla.bas
expand %_fd%4201.cp_ %_hd%%_d%\4201.cpi
expand %_fd%4208.cp_ %_hd%%_d%\4208.cpi
expand %_fd%5202.cp_ %_hd%%_d%\5202.cpi
expand %_fd%append.ex_ %_hd%%_d%\append.exe
expand %_fd%assign.co_ %_hd%%_d%\assign.com
expand %_fd%attrib.ex_ %_hd%%_d%\attrib.exe
expand %_fd%backup.ex_ %_hd%%_d%\backup.exe
expand %_fd%chkdsk.ex_ %_hd%%_d%\chkdsk.exe
expand %_fd%comp.ex_ %_hd%%_d%\comp.exe
expand %_fd%diskcomp.co_ %_hd%%_d%\diskcomp.com
expand %_fd%diskcopy.co_ %_hd%%_d%\diskcopy.com
expand %_fd%driver.sy_ %_hd%%_d%\driver.sys
expand %_fd%fc.ex_ %_hd%%_d%\fc.exe
expand %_fd%find.ex_ %_hd%%_d%\find.exe
expand %_fd%graftabl.co_ %_hd%%_d%\graftabl.com
expand %_fd%graphics.co_ %_hd%%_d%\graphics.com
expand %_fd%label.ex_ %_hd%%_d%\label.exe
expand %_fd%more.co_ %_hd%%_d%\more.com
expand %_fd%nibbles.ba_ %_hd%%_d%\nibbles.bas
expand %_fd%remline.ba_ %_hd%%_d%\remline.bas
expand %_fd%restore.ex_ %_hd%%_d%\restore.exe
expand %_fd%sort.ex_ %_hd%%_d%\sort.exe
expand %_fd%wina20.38_ %_hd%%_d%\wina20.386
expand %_fd%exe2bin.ex_ %_hd%%_d%\exe2bin.exe
expand %_fd%graphics.pr_ %_hd%%_d%\graphics.pro
expand %_fd%join.ex_ %_hd%%_d%\join.exe
expand %_fd%lcd.cp_ %_hd%%_d%\lcd.cpi
expand %_fd%loadfix.co_ %_hd%%_d%\loadfix.com
expand %_fd%printer.sy_ %_hd%%_d%\printer.sys
copy %_fd%readme.txt %_hd%%_d%\readme.txt > nul
expand %_fd%replace.ex_ %_hd%%_d%\replace.exe
expand %_fd%subst.ex_ %_hd%%_d%\subst.exe
expand %_fd%tree.co_ %_hd%%_d%\tree.com
goto allok
rem Copy files from 5.25" diskettes.
:getdsk51
if exist %_fd%command.com goto copyd51
cls
echo Error: This doesn't look like DISK 1, please try again...
echo (press Ctrl-C now if you need to exit)
echo .
echo This procedure is designed to install the Gateway version of MS-DOS 5.0
echo You may be trying to install another manufacturer's version of DOS 5.0.
echo Check to be sure you have the correct version of DOS 5.0 for your
echo system.
echo .
echo Insert DISK 1 of your Gateway MS-DOS 5.0 in drive %_fd%. >> %_b%\stacgw5.log
echo Insert DISK 1 of your Gateway MS-DOS 5.0 in drive %_fd%
pause
goto getdsk51
:copyd51
echo Expanding contents of DISK 1 to %_hd%%_d%...
echo .
rem Upgrade 360KB Distribution Disk Layout
copy %_fd%autoexec.bat %_hd%%_d%\autoexec.bat > nul
copy %_fd%command.com %_hd%%_d%\command.com > nul
copy %_fd%country.sys %_hd%%_d%\country.sys > nul
expand %_fd%ega.sy_ %_hd%%_d%\ega.sys
copy %_fd%format.com %_hd%%_d%\format.com > nul
copy %_fd%keyb.com %_hd%%_d%\keyb.com > nul
copy %_fd%keyboard.sys %_hd%%_d%\keyboard.sys >nul
copy %_fd%nlsfunc.exe %_hd%%_d%\nlsfunc.exe > nul
copy %_fd%setup.exe %_hd%%_d%\setup.exe > nul
copy %_fd%setup.ini %_hd%%_d%\setup.ini > nul
copy %_fd%cv.com %_hd%%_d%\cv.com > nul
:getdsk52
echo Insert DISK 2 of your Gateway MS-DOS 5.0 in drive %_fd%. >> %_b%\stacgw5.log
echo Insert DISK 2 of your Gateway MS-DOS 5.0 in drive %_fd%
pause
if exist %_fd%display.sy_ goto copyd52
cls
echo Error: This doesn't look like DISK 2, please try again...
echo (press Ctrl-C now if you need to exit)
echo .
goto getdsk52
:copyd52
echo Expanding contents of DISK 2 to %_hd%%_d%...
echo .
expand %_fd%display.sy_ %_hd%%_d%\display.sys
expand %_fd%ega.cp_ %_hd%%_d%\ega.cpi
expand %_fd%himem.sy_ %_hd%%_d%\himem.sys
expand %_fd%mode.co_ %_hd%%_d%\mode.com
expand %_fd%setver.ex_ %_hd%%_d%\setver.exe
expand %_fd%ansi.sy_ %_hd%%_d%\ansi.sys
expand %_fd%debug.ex_ %_hd%%_d%\debug.exe
expand %_fd%edlin.ex_ %_hd%%_d%\edlin.exe
expand %_fd%emm386.ex_ %_hd%%_d%\emm386.exe
expand %_fd%fastopen.ex_ %_hd%%_d%\fastopen.exe
copy %_fd%fdisk.exe %_hd%%_d%\fdisk.exe > nul
expand %_fd%mem.ex_ %_hd%%_d%\mem.exe
expand %_fd%mirror.co_ %_hd%%_d%\mirror.com
expand %_fd%ramdrive.sy_ %_hd%%_d%\ramdrive.sys
expand %_fd%share.ex_ %_hd%%_d%\share.exe
expand %_fd%smartdrv.sy_ %_hd%%_d%\smartdrv.sys
expand %_fd%sys.co_ %_hd%%_d%\sys.com
expand %_fd%undelete.ex_ %_hd%%_d%\undelete.exe
copy %_fd%unformat.com %_hd%%_d%\unformat.com > nul
expand %_fd%xcopy.ex_ %_hd%%_d%\xcopy.exe
:getdsk53
echo Insert DISK 3 of your Gateway MS-DOS 5.0 in drive %_fd%. >> %_b%\stacgw5.log
echo Insert DISK 3 of your Gateway MS-DOS 5.0 in drive %_fd%
pause
if exist %_fd%doskey.co_ goto copyd53
cls
echo Error: This doesn't look like DISK 3, please try again...
echo (press Ctrl-C now if you need to exit)
echo .
goto getdsk53
:copyd53
echo Expanding contents of DISK 3 to %_hd%%_d%...
echo .
expand %_fd%doskey.co_ %_hd%%_d%\doskey.com
expand %_fd%cga.gr_ %_hd%%_d%\cga.grb
expand %_fd%cga.in_ %_hd%%_d%\cga.ini
expand %_fd%cga.vi_ %_hd%%_d%\cga.vid
expand %_fd%dosshell.co_ %_hd%%_d%\dosshell.com
expand %_fd%dosshell.ex_ %_hd%%_d%\dosshell.exe
expand %_fd%dosswap.ex_ %_hd%%_d%\dosswap.exe
expand %_fd%ega.gr_ %_hd%%_d%\ega.grb
expand %_fd%ega.in_ %_hd%%_d%\ega.ini
expand %_fd%ega.vi_ %_hd%%_d%\ega.vid
expand %_fd%egamono.gr_ %_hd%%_d%\egamono.grb
expand %_fd%herc.gr_ %_hd%%_d%\herc.grb
expand %_fd%herc.vi_ %_hd%%_d%\herc.vid
expand %_fd%mono.gr_ %_hd%%_d%\mono.grb
expand %_fd%mono.in_ %_hd%%_d%\mono.ini
copy %_fd%packing.lst %_hd%%_d%\packing.lst > nul
expand %_fd%print.ex_ %_hd%%_d%\print.exe
expand %_fd%vga.gr_ %_hd%%_d%\vga.grb
expand %_fd%vga.vi_ %_hd%%_d%\vga.vid
expand %_fd%vgamono.gr_ %_hd%%_d%\vgamono.grb
copy %_fd%appnotes.txt %_hd%%_d%\appnotes.txt > nul
expand %_fd%doshelp.hl_ %_hd%%_d%\doshelp.hlp
expand %_fd%dosshell.hl_ %_hd%%_d%\dosshell.hlp
expand %_fd%edit.hl_ %_hd%%_d%\edit.hlp
expand %_fd%help.ex_ %_hd%%_d%\help.exe
expand %_fd%recover.ex_ %_hd%%_d%\recover.exe
:getdsk54
echo Insert DISK 4 of your Gateway MS-DOS 5.0 in drive %_fd%. >> %_b%\stacgw5.log
echo Insert DISK 4 of your Gateway MS-DOS 5.0 in drive %_fd%
pause
if exist %_fd%qbasic.hl_ goto copyd54
cls
echo Error: This doesn't look like DISK 4, please try again...
echo (press Ctrl-C now if you need to exit)
echo .
goto getdsk54
:copyd54
echo Expanding contents of DISK 4 to %_hd%%_d%...
echo .
expand %_fd%qbasic.hl_ %_hd%%_d%\qbasic.hlp
copy %_fd%edit.com %_hd%%_d%\edit.com > nul
expand %_fd%money.ba_ %_hd%%_d%\money.bas
expand %_fd%msherc.co_ %_hd%%_d%\msherc.com
expand %_fd%qbasic.ex_ %_hd%%_d%\qbasic.exe
:getdsk55
echo Insert DISK 5 of your Gateway MS-DOS 5.0 in drive %_fd%. >> %_b%\stacgw5.log
echo Insert DISK 5 of your Gateway MS-DOS 5.0 in drive %_fd%
pause
if exist %_fd%gorilla.ba_ goto copyd55
cls
echo Error: This doesn't look like DISK 5, please try again...
echo (press Ctrl-C now if you need to exit)
echo .
goto getdsk55
:copyd55
echo Expanding contents of DISK 5 to %_hd%%_d%...
echo .
expand %_fd%gorilla.ba_ %_hd%%_d%\gorilla.bas
expand %_fd%4201.cp_ %_hd%%_d%\4201.cpi
expand %_fd%4208.cp_ %_hd%%_d%\4208.cpi
expand %_fd%5202.cp_ %_hd%%_d%\5202.cpi
expand %_fd%append.ex_ %_hd%%_d%\append.exe
expand %_fd%assign.co_ %_hd%%_d%\assign.com
expand %_fd%attrib.ex_ %_hd%%_d%\attrib.exe
expand %_fd%backup.ex_ %_hd%%_d%\backup.exe
expand %_fd%chkdsk.ex_ %_hd%%_d%\chkdsk.exe
expand %_fd%comp.ex_ %_hd%%_d%\comp.exe
expand %_fd%diskcomp.co_ %_hd%%_d%\diskcomp.com
expand %_fd%diskcopy.co_ %_hd%%_d%\diskcopy.com
expand %_fd%driver.sy_ %_hd%%_d%\driver.sys
expand %_fd%fc.ex_ %_hd%%_d%\fc.exe
expand %_fd%find.ex_ %_hd%%_d%\find.exe
expand %_fd%graftabl.co_ %_hd%%_d%\graftabl.com
expand %_fd%graphics.co_ %_hd%%_d%\graphics.com
expand %_fd%label.ex_ %_hd%%_d%\label.exe
expand %_fd%more.co_ %_hd%%_d%\more.com
expand %_fd%nibbles.ba_ %_hd%%_d%\nibbles.bas
expand %_fd%remline.ba_ %_hd%%_d%\remline.bas
expand %_fd%restore.ex_ %_hd%%_d%\restore.exe
expand %_fd%sort.ex_ %_hd%%_d%\sort.exe
expand %_fd%wina20.38_ %_hd%%_d%\wina20.386
expand %_fd%exe2bin.ex_ %_hd%%_d%\exe2bin.exe
expand %_fd%graphics.pr_ %_hd%%_d%\graphics.pro
expand %_fd%join.ex_ %_hd%%_d%\join.exe
expand %_fd%lcd.cp_ %_hd%%_d%\lcd.cpi
expand %_fd%loadfix.co_ %_hd%%_d%\loadfix.com
expand %_fd%printer.sy_ %_hd%%_d%\printer.sys
copy %_fd%readme.txt %_hd%%_d%\readme.txt > nul
expand %_fd%replace.ex_ %_hd%%_d%\replace.exe
expand %_fd%subst.ex_ %_hd%%_d%\subst.exe
expand %_fd%tree.co_ %_hd%%_d%\tree.com
:allok
copy %_hd%%_d%\edlin.exe %_b%%_d% > nul
copy %_hd%%_d%\sys.com %_b% > nul
copy %_hd%%_d%\chkdsk.exe %_b%%_d% > nul
copy %_hd%%_d%\setver.exe %_b%%_d% > nul
copy %_hd%%_d%\emm386.exe %_b%%_d% > nul
rem Update the following files on Drive C: and the uncompressed drive:
rem
rem HIMEM.SYS, SMARTDRV.SYS, RAMDRIVE.SYS, COUNTRY.SYS, ANSI.SYS
rem DRIVER.SYS
rem Also copy WINA20.386 to root directory Stacker and boot drives.
rem
rem Copy them from the DOS directory to the appropriate destinations.
rem
echo Updating device drivers on the Stacker volume and boot drive...
:updsys
rem Check for a Stacker directory on the user's boot drive.
rem If it doesn't exist, create it.
rem
copy %_hd%%_d%\command.com %_b%\stacker\command.com > nul
if exist %_b%\stacker\command.com goto dofiles
mkdir %_b%\stacker > nul
copy %_hd%%_d%\command.com %_b%\stacker\command.com > nul
if not exist %_b%\stacker\command.com goto nostroot
:dofiles
del %_b%\stacker\command.com > nul
rem HIMEM.SYS - check root, DOS & Windows directories
if exist \himem.sys copy %_hd%%_d%\himem.sys \himem.sys > nul
if exist \windows\himem.sys copy %_hd%%_d%\himem.sys \windows\himem.sys > nul
if exist %_b%\himem.sys copy %_hd%%_d%\himem.sys %_b%\himem.sys > nul
copy %_hd%%_d%\himem.sys %_b%%_d%\himem.sys > nul
if exist %_b%\windows\himem.sys copy %_hd%%_d%\himem.sys %_b%\windows\himem.sys > nul
echo HIMEM.SYS updated. >> %_b%\stacgw5.log
rem SMARTDRV.SYS - check root, DOS & Windows directories
if exist \smartdrv.sys copy %_hd%%_d%\smartdrv.sys \smartdrv.sys > nul
if exist \windows\smartdrv.sys copy %_hd%%_d%\smartdrv.sys \windows\smartdrv.sys > nul
if exist %_b%\smartdrv.sys copy %_hd%%_d%\smartdrv.sys %_b%\smartdrv.sys > nul
if exist %_b%%_d%\smartdrv.sys copy %_hd%%_d%\smartdrv.sys %_b%%_d%\smartdrv.sys > nul
if exist %_b%\windows\smartdrv.sys copy %_hd%%_d%\smartdrv.sys %_b%\windows\smartdrv.sys > nul
echo SMARTDRV.SYS updated. >> %_b%\stacgw5.log
rem RAMDRIVE.SYS - check root, DOS & Windows directories
if exist \ramdrive.sys copy %_hd%%_d%\ramdrive.sys \ramdrive.sys > nul
if exist \windows\ramdrive.sys copy %_hd%%_d%\ramdrive.sys \windows\ramdrive.sys > nul
if exist %_b%\ramdrive.sys copy %_hd%%_d%\ramdrive.sys %_b%\ramdrive.sys > nul
if exist %_b%%_d%\ramdrive.sys copy %_hd%%_d%\ramdrive.sys %_b%%_d%\ramdrive.sys > nul
if exist %_b%\windows\ramdrive.sys copy %_hd%%_d%\ramdrive.sys %_b%\windows\ramdrive.sys > nul
echo RAMDRIVE.SYS updated. >> %_b%\stacgw5.log
rem COUNTRY.SYS - check root & DOS directories
if exist \country.sys copy %_hd%%_d%\country.sys \country.sys > nul
if exist %_b%\country.sys copy %_hd%%_d%\country.sys %_b%\country.sys > nul
if exist %_b%%_d%\country.sys copy %_hd%%_d%\country.sys %_b%%_d%\country.sys > nul
echo COUNTRY.SYS updated. >> %_b%\stacgw5.log
rem ANSI.SYS - check root & DOS directories
if exist \ansi.sys copy %_hd%%_d%\ansi.sys \ansi.sys > nul
if exist %_b%\ansi.sys copy %_hd%%_d%\ansi.sys %_b%\ansi.sys > nul
if exist %_b%%_d%\ansi.sys copy %_hd%%_d%\ansi.sys %_b%%_d%\ansi.sys > nul
echo ANSI.SYS updated. >> %_b%\stacgw5.log
rem DRIVER.SYS - check root & DOS directories
if exist \driver.sys copy %_hd%%_d%\driver.sys \driver.sys > nul
if exist %_b%\driver.sys copy %_hd%%_d%\driver.sys %_b%\driver.sys > nul
if exist %_b%%_d%\driver.sys copy %_hd%%_d%\driver.sys %_b%%_d%\driver.sys > nul
echo DRIVER.SYS updated. >> %_b%\stacgw5.log
rem WINA20.386 - copy to root directory of Stacker and boot drives
copy %_hd%%_d%\wina20.386 \wina20.386 > nul
copy %_hd%%_d%\wina20.386 %_b%\wina20.386 > nul
echo WINA20 copied to root of Stacker and boot drives. >> %_b%\stacgw5.log
rem Update COMMAND.COM in the root of the Stacker volume (the current drive).
:upcmdcom
echo Updating COMMAND.COM on the Stacker volume ...
if exist \command.com copy %_hd%%_d%\command.com \command.com > nul
echo COMMAND.COM updated on Stacker volume. >> %_b%\stacgw5.log
rem Determine video type and install appropriate DOSSHELL files.
vidtype
if errorlevel 7 goto MCA
if errorlevel 6 goto HERC
if errorlevel 5 goto VGAMONO
if errorlevel 4 goto VGA
if errorlevel 3 goto EGAMONO
if errorlevel 2 goto EGA
if errorlevel 1 goto CGA
:MONO
echo MONO video. >> %_b%\stacgw5.log
echo DOSSHELL set up for MONO.
copy %_hd%%_d%\mono.ini %_hd%%_d%\dosshell.ini > nul
copy %_hd%%_d%\mono.grb %_hd%%_d%\dosshell.grb > nul
goto ENDVID
:CGA
echo CGA video. >> %_b%\stacgw5.log
echo DOSSHELL set up for CGA.
copy %_hd%%_d%\cga.vid %_hd%%_d%\dosshell.vid > nul
copy %_hd%%_d%\cga.ini %_hd%%_d%\dosshell.ini > nul
copy %_hd%%_d%\cga.grb %_hd%%_d%\dosshell.grb > nul
goto ENDVID
:EGA
echo EGA video. >> %_b%\stacgw5.log
echo DOSSHELL set up for EGA.
copy %_hd%%_d%\ega.vid %_hd%%_d%\dosshell.vid > nul
copy %_hd%%_d%\ega.ini %_hd%%_d%\dosshell.ini > nul
copy %_hd%%_d%\ega.grb %_hd%%_d%\dosshell.grb > nul
goto ENDVID
:EGAMONO
echo EGAMONO video. >> %_b%\stacgw5.log
echo DOSSHELL set up for EGAMONO.
copy %_hd%%_d%\ega.vid %_hd%%_d%\dosshell.vid > nul
copy %_hd%%_d%\mono.ini %_hd%%_d%\dosshell.ini > nul
copy %_hd%%_d%\egamono.grb %_hd%%_d%\dosshell.grb > nul
goto ENDVID
:VGA
echo VGA video. >> %_b%\stacgw5.log
echo DOSSHELL set up for VGA.
copy %_hd%%_d%\vga.vid %_hd%%_d%\dosshell.vid > nul
copy %_hd%%_d%\ega.ini %_hd%%_d%\dosshell.ini > nul
copy %_hd%%_d%\vga.grb %_hd%%_d%\dosshell.grb > nul
goto ENDVID
:VGAMONO
echo VGAMONO video. >> %_b%\stacgw5.log
echo DOSSHELL set up for VGAMONO.
copy %_hd%%_d%\vga.vid %_hd%%_d%\dosshell.vid > nul
copy %_hd%%_d%\mono.ini %_hd%%_d%\dosshell.ini > nul
copy %_hd%%_d%\vgamono.grb %_hd%%_d%\dosshell.grb > nul
goto ENDVID
:HERC
echo HERC video. >> %_b%\stacgw5.log
echo DOSSHELL set up for HERC.
copy %_hd%%_d%\herc.vid %_hd%%_d%\dosshell.vid > nul
copy %_hd%%_d%\mono.ini %_hd%%_d%\dosshell.ini > nul
copy %_hd%%_d%\herc.grb %_hd%%_d%\dosshell.grb > nul
goto ENDVID
:MCA
echo MCA video. >> %_b%\stacgw5.log
echo DOSSHELL set up for MCA.
copy %_hd%%_d%\cga.vid %_hd%%_d%\dosshell.vid > nul
copy %_hd%%_d%\cga.ini %_hd%%_d%\dosshell.ini > nul
copy %_hd%%_d%\vga.grb %_hd%%_d%\dosshell.grb > nul
:ENDVID
rem Instruct the user to reboot the system in order to SYS the uncompressed
rem boot drive
echo .
echo The DOS 5.0 files have been copied successfully.
echo .
echo You will now be prompted to reboot the system using Disk 1 of
echo Gateway MS-DOS 5.0. This will install the remaining files needed to
echo complete your upgrade to Gateway MS-DOS 5.0. Note that this process
echo will only transfer the system files to your boot drive since we've
echo already copied the files from the Gateway MS-DOS 5.0 diskettes.
pause
cls
echo When Disk 1 of Gateway MS-DOS boots the system, you will receive a
echo message which indicates that the SETUP program has detected
echo that there is not enough free disk space to install MS-DOS 5.0 on
echo your boot drive. You should then press F3, then Y, to exit the SETUP
echo program and return to the DOS prompt. At that point, type the following
echo to continue the installation process:
echo .
echo C:STAC5
echo .
echo **************************************************************
echo * WRITE THIS INSTRUCTION DOWN. YOU MUST RUN THIS PROGRAM *
echo * TO CONTINUE THE INSTALLATION PROCESS. *
echo **************************************************************
echo .
pause
:getdsk1
echo Insert DISK 1 of your Gateway MS-DOS 5.0 in drive %_fd%. >> %_b%\stacgw5.log
echo Insert DISK 1 of your Gateway MS-DOS 5.0 in drive %_fd%
pause
if exist %_fd%command.com goto sysfiles
cls
echo Error: This doesn't look like DISK 1, please try again...
echo (press Ctrl-C if you need to exit)
echo .
goto getdsk1
:sysfiles
echo Copy STACGW5.BAT to root dir of boot drive for PASS 2. >> %_b%\stacgw5.log
if exist %_b%\stacgw5.bat del %_b%\stacgw5.bat
copy stacgw5.bat %_b%\ > nul
rem Create a batch file for use in PASS 2.
echo echo off
echo C: > %_b%\STAC5.BAT
echo STACGW5 %_fd% %_hd% %_d% %_b% 2 >> %_b%\STAC5.BAT
echo . >> %_b%\STAC5.BAT
echo Creating %_B%\STAC5.BAT = STACGW5 %_fd% %_hd% %_d% %_b% 2 >> %_b%\stacgw5.log
rem Create another batch file for use in PASS 3.
if exist %_b%\autoexec.bat del %_b%\autoexec.bat
echo cd\stacker > %_b%\autoexec.bat
echo STACGW5 %_fd% %_hd% %_d% %_b% 3 >> %_b%\autoexec.bat
echo . >> %_b%\autoexec.bat
echo Creating %_b%\AUTOEXEC.BAT = STACGW5 %_fd% %_hd% %_d% %_b% 3 >> %_b%\stacgw5.log
cls
echo *************************************************************
echo * PRESS CTRL+ALT+DEL NOW TO REBOOT *
echo * YOUR SYSTEM FROM DOS DISK 1 *
echo *************************************************************
echo * DON'T FORGET TO TYPE *
echo * C:STAC5 *
echo * AT THE A PROMPT AFTER EXITING THE SETUP PROGRAM *
echo *************************************************************
echo PASS 1 completed. >> %_b%\stacgw5.log
echo . >> %_b%\stacgw5.log
goto alldone
rem ========================================================================
rem PASS 2 Process.
:pass2
echo Begin PASS 2. >> c:\stacgw5.log
set _fd=%1
set _hd=%2
set _d=%3
set _b=%4
cls
:getadd1
echo Please make sure DISK 1 of your Gateway MS-DOS 5.0 is in drive %_fd% >> c:\stacgw5.log
echo Please make sure DISK 1 of your Gateway MS-DOS 5.0 is in drive %_fd%
pause
if exist %_fd%command.com goto add1ok
cls
echo Error: This doesn't look like DISK 1, please try again...
echo (press Ctrl-C if you need to exit)
echo .
goto getadd1
:add1ok
ren c:\command.com command.stc
c:\sys %_fd% c:
if not exist c:\command.com goto sysfail
del c:\command.stc > nul
copy c:\command.com c:%_d% > nul
echo System Transferred >> c:\stacgw5.log
echo Please remove DISK 1 of your Gateway MS-DOS 5.0 from drive %_fd% >> c:\stacgw5.log
echo Please remove DISK 1 of your Gateway MS-DOS 5.0 from drive %_fd%
pause
rem Instruct the user to reboot the system in order to copy the system
rem files to the Stacker volume.
cls
echo You will now be prompted to reboot the system from the hard disk.
echo This final procedure will complete your upgrade to Gateway MS-DOS 5.0.
echo .
pause
rem Rename config.sys so Stacker volume can be mounted for PASS 3.
ren c:\config.$s$ config.sys
echo CONFIG.SYS restored on boot drive %_b% for PASS 3. >> c:\stacgw5.log
echo PASS 2 completed. >> c:\stacgw5.log
echo . >> c:\stacgw5.log
cls
echo *************************************************************
echo * PLEASE REMOVE THE DISKETTE AND *
echo * PRESS CTRL+ALT+DEL TO REBOOT YOUR SYSTEM *
echo * FROM THE HARD DISK *
echo *************************************************************
goto alldone
rem =========================================================================
rem PASS 3 Process.
:pass3
set _fd=%1
set _hd=%2
set _d=%3
set _b=%4
echo Begin PASS 3. >> %_b%\stacgw5.log
path %_hd%\stacker
rem Update DOS hidden files on Stacker volume
rem Handle both MS-DOS and IBM versions.
if exist %_hd%\msdos.sys goto st_doms
if exist %_hd%\ibmdos.com goto st_doibm
goto st_put
:st_doibm
echo IBM System Files found on Stacker volume. >> %_b%\stacgw5.log
rem Unhide and delete IBM DOS files on Stacker volume.
sattrib -h -r -s %_hd%\ibmbio.com
sattrib -h -r -s %_hd%\ibmdos.com
del %_hd%\ibmbio.com > nul
del %_hd%\ibmdos.com > nul
echo IBM System Files deleted on Stacker volume. >> %_b%\stacgw5.log
goto st_put
:st_doms
echo MS-DOS System Files found on Stacker volume. >> %_b%\stacgw5.log
rem Unhide and delete MS-DOS files on Stacker volume.
sattrib -h -r -s %_hd%\io.sys
sattrib -h -r -s %_hd%\msdos.sys
del %_hd%\io.sys > nul
del %_hd%\msdos.sys > nul
echo MS-DOS System Files deleted on Stacker volume. >> %_b%\stacgw5.log
:st_put
sattrib -h -r -s %_b%\io.sys
sattrib -h -r -s %_b%\msdos.sys
echo System files on uncompressed boot drive unhidden. >> %_b%\stacgw5.log
copy %_b%\io.sys %_hd%\io.sys > nul
copy %_b%\msdos.sys %_hd%\msdos.sys > nul
echo System files copied to Stacker volume. >> %_b%\stacgw5.log
rem Hide system files on Stacker volume and uncompressed boot drive.
sattrib +h +r +s %_hd%\io.sys
sattrib +h +r +s %_hd%\msdos.sys
sattrib +h +r +s %_b%\io.sys
sattrib +h +r +s %_b%\msdos.sys
echo System files on Stacker volume and boot drive hidden. >> %_b%\stacgw5.log
rem Cleanup and exit.
del %_b%\autoexec.bat
ren %_b%\autoexec.$s$ autoexec.bat
echo AUTOEXEC.BAT restored on boot drive %_b%. >> %_b%\stacgw5.log
copy %_b%\stacgw5.log %_b%\stacker > nul
del %_b%\stacgw5.log > nul
del %_b%\sys.com
del %_b%\stac5.bat
del %_b%\stacgw5.bat
echo PASS 3 completed. >> %_b%\stacker\stacgw5.log
echo STACGW5.BAT complete. >> %_b%\stacker\stacgw5.log
cls
echo Gateway MS-DOS 5.0 files copied successfully.
echo .
rem Instruct the user to reboot.
echo .
echo Your Gateway MS-DOS 5.0 Upgrade is now complete.
echo .
echo Your CONFIG.SYS and AUTOEXEC.BAT files are the same as when you started
echo this process. You will need to modify them if you wish to take advantage
echo of the exciting new features offered in Gateway DOS 5.0. You can find
echo some hints on this by referring to the "Getting Started - Upgrade"
echo booklet which came with your upgrade package. Be sure you use the
echo correct path names when adding any new commands to your CONFIG.SYS file.
echo .
echo *************************************************************
echo * PRESS CTRL+ALT+DEL NOW TO REBOOT YOUR SYSTEM *
echo * *
echo * THANK YOU FOR CHOOSING STACKER *
echo *************************************************************
goto alldone
rem =========================================================================
rem Error Displays - All errors which exit after display are here.
rem =========================================================================
:novid
cls
echo ERROR: We could not find the program VIDTYPE.EXE in the STACKER
echo directory. Make sure both STACGW5.BAT and VIDTYPE.EXE
echo are present in your STACKER directory on the Stacker volume,
echo then restart the batch file.
goto alldone
:noparm2
:noparm3
cls
echo ERROR: STACGW5 requires three command-line parameters.
echo .
goto errexit
:nospace
cls
echo ERROR: STACGW5.BAT cannot run. There are two possible reasons for this.
echo .
echo 1. There is not enough DOS environment space available.
echo The update process requires very little space, however
echo there is not enough available. Please delete one or
echo more of your environment variables and run STACGW5 again.
echo .
echo or
echo 2. You are running a version of DOS prior to DOS 3.1. This
echo batch file uses features available in DOS 3.1 and later.
echo .
echo You are running the following DOS version:
echo .
ver
echo .
goto alldone
:notstkr1
cls
echo ERROR: This batch file must be run from your compressed drive, with
echo the Stacker directory as your current directory. We're looking
echo for the SATTRIB, SWAPMAP, and DRVTYPE Stacker utilities to
echo verify this. So, if you've deleted SATTRIB.COM, SWAPMAP.COM,
echo or DRVTYPE.EXE from your Stacker directory, you must copy from
echo the Stacker diskette to your Stacker directory before you can
echo complete this process.
echo .
echo Please copy this batch file, STACGW5.BAT, to your STACKER directory.
echo Make the Stacker directory on your compressed drive the current
echo directory and run this batch file, STACGW5.
echo .
echo For example, if drive C: is a compressed drive, your Stacker
echo directory is named STACKER, the DOS directory is named DOS, and
echo you will be installing from drive A:, type the following commands:
echo .
echo COPY A:STACGW5.BAT C:\STACKER
echo C:
echo CD \STACKER
echo STACGW5 A: C: \DOS
echo .
goto alldone
:notstkr2
cls
echo ERROR: The drive letter you have specified for your DOS directory,
echo %_hd%, is not a Stacker volume.
echo .
goto errexit
:noboot
echo ERROR: Unable to determine the boot drive.
echo .
echo Please contact STAC Technical Support for assistance.
goto alldone
:nodrive
cls
echo ERROR: You must provide the drive letter of the diskette drive
echo that you will be installing your Gateway MS-DOS 5.0 Upgrade
echo from. The drive letter must be A: or B:.
echo .
goto errexit
:direrr1
cls
echo ERROR: Unable to verify the DOS directory, %_d%. We're looking for
echo the CHKDSK command file to verify this.
echo .
goto errexit
:direrr2
cls
echo ERROR: Drive C: is not a Stacker volume.
echo .
goto errexit
:nodosdir
cls
echo ERROR: Unable to copy files to the DOS directory, named %_hd%%_d%.
echo Your disk may be full. You must have at least 3 MB available
echo on the drive containing the DOS directory.
echo .
echo Please make more space available and run STACGW5.BAT from the Stacker
echo again. For example, if your are installing from drive A: and the DOS
echo on a Stacker volume, drive C:, is called DOS and is on drive, type the
echo following:
echo .
echo STACGW5 A: C: \DOS
echo .
goto alldone
:nostroot
rem If this doesn't work, we can't operate.
cls
echo ERROR: Unable to locate or create Stacker directory on your boot
echo drive, drive %_b%.
echo .
echo Please make sure that a directory named STACKER exists on your boot
echo drive.
goto alldone
:errexit
:noparms
echo Run STACGW5.BAT from your Stacker directory on your Stacker volume
echo with the following parameters:
echo .
echo STACGW5 d1: d2: dosdir
echo .
echo d1: the drive letter of the diskette drive you'll be installing
echo your Gateway MS-DOS 5.0 Upgrade from. This must be A: or B:.
echo .
echo d2: the drive letter containing the DOS directory. This drive
echo MUST be a Stacker volume.
echo .
echo dosdir the name of the DOS directory on your Stacker volume,
echo (for example, \DOS).
echo .
echo For example, if you're installing Gateway MS-DOS 5.0 from drive A:
echo and the DOS directory on drive C:, a Stacker volume, is called DOS,
echo type the following:
echo .
echo STACGW5 A: C: \DOS
echo .
goto alldone
:sysfail
echo Error: We were not able to copy the system files to your C: drive
echo successfully.
echo .
echo Please contact STAC Technical Support for assistance.
ren c:\command.stc command.com
:alldone
rem Be sure to keep the environment clean on exit.
set _b=
set _d=
set _fd=
set _fs=
set _h=